﻿
using System;
using UnityEngine;
using UnityEngine.UI;

public class FunctionHall
{
    GameObject _root;
    //功能大厅
    public FunctionHall()
    {
        _root = UIMgr.GetInstance().Add("UI/FightUI/FunctionHall",UILayer.FightUI);
        var btnRoleAttr = _root.Find<Button>("BtnRole");
        btnRoleAttr.onClick.AddListener(onRoleAttrClick);
    }

    private void onRoleAttrClick()
    {
        DialogMgr.GetInstance().Open<RoleAttrDlg>();
    }
}
